package com.shujia.wyh.day29.test.codingtest;

public class SaleTicketDemo {
    public static void main(String[] args) {
        //创建Runnale对象
        SaleTicket saleTicket = new SaleTicket();

        //创建5个线程代表5个窗口
        Thread t1 = new Thread(saleTicket,"窗口1");
        Thread t2 = new Thread(saleTicket,"窗口2");
        Thread t3 = new Thread(saleTicket,"窗口3");
        Thread t4 = new Thread(saleTicket,"窗口4");
        Thread t5 = new Thread(saleTicket,"窗口5");

        //启动线程
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();

    }
}
